package Event.lib;

import Creature.Player;
import Event.Story;


/**
 *
 *
 * 撞车，发生在送外卖途中
 *
 */
public class EncounterDriver extends Story {
    public EncounterDriver(Player player) {
        super(player);
        eventName = "被轿车司机敲竹杠";
        happenText = "你在送餐路上，准备用一个帅气的姿势过弯。突然，迎面撞上一辆斯柯达。下来一个光头司机，大声呵斥：”你小子长没长眼睛，把我车前杠刮了！怎么赔！我车可是全球限量版的！“你看了看" +
                "手机，还有4分钟就要超过送餐时间了，此时你会选择。。。";

        options = new String[]{"不多说，直接动手", "交100块私了", "亮出自己的纹身"};


    }

    public void eventHappen(int option) {

        switch (option) {
            case 0:

                if (player.getPower() >= 65) {

                    endText = "直接打出十八套军体拳，司机仓皇逃窜";
                    player.setPower(player.getPower() + 5);
                    player.setCharm(player.getCharm() + 5);
                    player.setFatigue(player.getFatigue() + 5);

                } else {

                    endText = "直接打出十八套军体拳，司机笑了笑，掏了一把水果🔪，你想了想还是交钱私了吧";
                    player.setPower(player.getPower() + 5);
                    player.setCharm(player.getCharm() - 5);
                    player.setFatigue(player.getFatigue() + 10);
                    player.setMoney(player.getMoney() - 100);
                }
                break;


            case 1:
                endText = "我送一单才赚几块钱，淦";
                player.setMoney(player.getMoney() - 100);
                player.setSan(player.getSan() - 10);
                break;

            case 2:
                if (player.getCharm() > 70) {
                    endText = "你解开了衣服上第一颗纽扣，露出了凶狠怪物的耳朵。。。司机见状不妙撒腿就跑";
                    player.setCharm(player.getCharm() + 5);
                    player.setSan(player.getSan() + 10);

                } else {
                    endText = "你解开了衣服上第一颗纽扣，露出了凶狠怪物的耳朵。。。随后解开第二、第三颗扣子，居然是只哈士奇，司机笑了，脱了自己的背心，露出四个大字”雄霸天下“" +
                            "，你被吓得跪地求饶乖乖交钱";
                    player.setMoney(player.getMoney() - 100);
                    player.setCharm(player.getCharm() - 10);

                }
                break;
        }
    }
}